import React from 'react';
import store from '../../store/index.js';
import { Button } from 'antd';
import { connect } from 'react-redux';
import * as actions from '@/store/actions/actions.js';
class redux extends React.Component {
  // }
  render() {
    return (
      <div>
        <Button
          onClick={() => {
            this.props.dispatch(actions.modify('这是redux传的值666'));
          }}
          type="primary"
        >
          通过redux修改内容
        </Button>
        <div>{JSON.stringify(store.getState())}</div>
      </div>
    );
  }
}

export default connect(state => state)(redux);
// export default redux;
